package ua.pp.bizon.yandex.uploader;

import ua.pp.bizon.yandex.api.IJobExecutor;
import ua.pp.bizon.yandex.api.ILogin;
import ua.pp.bizon.yandex.api.JobInfo;
import ua.pp.bizon.yandex.api.ObjectLookup;
import ua.pp.bizon.yandex.api.impl.Activity;
import ua.pp.bizon.yandex.api.impl.Element;

public class Login implements ILogin, JobInfo {

	@Override
	public void setLogin(String string) {
		throw new RuntimeException("not implemented  yet");

	}

	@Override
	public void waitUserData() {
		ObjectLookup.lookup(IJobExecutor.class).execInSwing(this, true);
	}

	@Override
	public void unblockingWaitUserData() {
		ObjectLookup.lookup(IJobExecutor.class).execInSwing(this, false);

	}

	@Override
	public void run() {

	}

	@Override
	public Element getState() {
		Element e = new Element();
		e.setActivity(Activity.RELOGIN);
		return e;
	}

}
